/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.cn.xiaonuo.tcrfinance.sysmgmt.controller;


import com.cn.xiaonuo.core.annotion.BusinessLog;
import com.cn.xiaonuo.core.enums.LogAnnotionOpTypeEnum;
import com.cn.xiaonuo.core.pojo.response.ResponseData;
import com.cn.xiaonuo.core.pojo.response.SuccessResponseData;
import com.cn.xiaonuo.tcrfinance.sysmgmt.param.SysLogHpcParam;
import com.cn.xiaonuo.tcrfinance.sysmgmt.service.SysLogHpcService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 系统日志
 *
 * @author Mark sunlightcs@gmail.com
 */
@RestController
public class SysLogHpcController {
	@Autowired
	private SysLogHpcService sysLogService;

	/**
	 * 查询商品基础信息表
	 *
	 * @author luyangyang
	 * @date 2021-10-21 16:14:37
	 */
	//@Permission
	@BusinessLog(title = "系统日志分页列表", opType = LogAnnotionOpTypeEnum.DETAIL)
	@ApiOperation(value = "系统日志分页列表", notes = "系统日志分页列表")
	@RequestMapping(value = "/api/common/sys/log/page", method = RequestMethod.POST)
	public ResponseData page(SysLogHpcParam sysLogParam) {
		return new SuccessResponseData(sysLogService.queryPage(sysLogParam));
	}
}
